package com.guigui.common.constant;

/**
 * @author ：xin
 * @date ：Created in 2021/11/5 15:10
 */
public class WareConstant {
    public enum PurchaseStatus {
        /**
         * 新建
         */
        CREATED(0,"新建"),
        /**
         * 已分配
         */
        ASSIGNED(1,"已分配"),
        /**
         * 正在采购
         */
        RECEIVE(2,"已领取"),
        /**
         * 已完成
         */
        OK(3,"已完成"),
        /**
         * 采购失败
         */
        ERROR(4,"有异常");
        int code;
        String msg;

        PurchaseStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PurchaseDetailStatus {
        /**
         * 新建
         */
        CREATED(0,"新建"),
        /**
         * 已分配
         */
        ASSIGNED(1,"已分配"),
        /**
         * 正在采购
         */
        BUYING(2,"正在采购"),
        /**
         * 已完成
         */
        OK(3,"已完成"),
        /**
         * 采购失败
         */
        ERROR(4,"采购失败");
        int code;
        String msg;

        PurchaseDetailStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
